package com.lujianfei.productprice.ui.ShopDetail;

import android.content.Context;

import com.lujianfei.productprice.ui.addProduct.ProductEntity;

import java.util.List;

public interface ShopContract {
    interface Model{

        List<ProductEntity> getData(long id);

        int getCartQuantity();

        void addToCart(ProductEntity data);

        void delete(ProductEntity productEntity);
    }
    interface View{

        long getId();

        void setData(List<ProductEntity> productEntities);

        Context getContext();

        String getShopName();

        void refreshQuantity();
    }
    interface Presenter{

        void loadData();

        void openAddProduct();

        void openCart();

        void addToCart(ProductEntity data);

        void showLongClickDialog(ProductEntity productEntity);
    }
}
